<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title><{webcontrol type='GetAppInf' varName='systemV'}></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <{webcontrol type='LoadJsCss' src="Resource/Script/layui/layui/css/layui.css"}>
  <{webcontrol type='LoadJsCss' src="Resource/Script/layui/style/admin.css"}>

  <link type="favicon" rel="shortcut icon" href="favicon.ico" />
</head>
<body>
    <div class="layui-card-header">
        <{$title}>
      </div>
      <div class="layui-card-body layadmin-setTheme">
        <div class="layui-card-body layui-text layadmin-about" style="line-height: 200%;">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                一、扫码关注样品间小程序
            </div>
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <img src="Resource/Image/qr_sample.jpg" style="max-height: 180px;">
            </div>
            <!-- <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <img src="Resource/Image/search_sample.jpg" style="max-height: 120px;">
            </div> -->
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12" style="margin-top: 30px;">
                二、在小程序中扫码登录当前账号
            </div>
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12" style="margin-top: 20px;color: orange;">
                注意：<br/>
                二维码等同于账号密码，不要泄露！！
                <!-- <{$qrcodestr}> -->
            </div>
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <img src="<{$qrcode}>" style="max-height: 150px;">
            </div>
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12" style="margin-top: 20px;color: green;">
                <{if $user.openid !=''}>
                已绑定微信账号：<{$user.nickname}>  -  <{$user.openid}> <br/>
                <input type='button' class="layui-btn layui-btn-danger bingCannel" value='解除绑定'>
                <{/if}>
            </div>
        </div>

    </div>
    <{webcontrol type='LoadJsCss' src="Resource/Script/layui/layui/layui.js"}>
    <{webcontrol type='LoadJsCss' src="Resource/Script/jquery.1.9.1.js"}>
    <script>
        layui.config({
          base: 'Resource/Script/layui/' //静态资源所在路径
        }).extend({
          index: 'lib/index.js?ver=1.1'
        }).use('index');

        $('.bingCannel').click(function(){
            layer.confirm('是否要解除绑定微信!', {
                btn: ['解除', '取消']
            }, function (index, layero) {
                $.post('<{url controller=App_Mp action=bindCannel}>',{},function(res){
                    if(res.success){
                        //无法关闭这个消息框
                        layer.closeAll();  //加入这个信息点击确定 会关闭这个消息框
                        layer.msg("解除绑定完成!",{ icon: 1, time: 1000 });
                    }
                },'json');
            });
        });
    </script>
</body>
</html>